import Vue from 'vue'
import Router from 'vue-router'

// 登录页
import login from '@/views/login'
// 首页
import index from '@/views/index'

//报修列表页
import repairList from '@/views/repair/RepairList'
//用户管理页
import user  from '@/views/system/user'
//公告页
import notice from '@/views/notice/notice'
//宿舍列表页
import classify from '@/views/repair/classify'

Vue.use(Router)

export default new Router({
  base:'/web',
  routes: [
    {
      path: '/',
      name: '',
      component: login
    },{
      path: '/login',
      name: '登录界面',
      component: login
    },{
      path: '/index',
      name: '首页',
      component: index,
      children:[{
        path:'/repair/repairList',
        name:'报修列表页',
        component:repairList
      },
      {
        path:'/system/user',
        name:'用户管理页',
        component:user
      },
      {
        path:'/notice/notice',
        name:'公告页',
        component:notice
      },
      {
        path:'/repair/classify',
        name:'宿舍管理页',
        component:classify
      }
    ]
    }
  ]
})
